home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / ip / ka9q / osrc.arc / CMDPARSE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-28  |  658 b   |  26 lines

  1. #ifndef    NARG
  2.  
  3. #define    NARG        10    /* Max number of args to commands */
  4.  
  5. struct cmds {
  6.     char *name;        /* Name of command */
  7.     int (*func)();        /* Function to execute command */
  8.     int stksize;        /* Size of stack if subprocess, 0 if synch */
  9.         int  argcmin;        /* Minimum number of args */
  10.         char *argc_errmsg;    /* Message to print if insufficient args */
  11. };
  12. #ifndef    NULLCHAR
  13. #define    NULLCHAR    (char *)0
  14. #endif
  15.  
  16. #if    defined(__STDC__) || defined(__TURBOC__)
  17. int cmdparse(struct cmds cmds[],char *line,void *envp);
  18. int subcmd(struct cmds tab[],int argc,char *argv[],void *envp);
  19. #else
  20. int cmdparse(),subcmd();
  21. #endif
  22.  
  23. #endif    /* NARG */
  24.  
  25.  
  26.